import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

import {state,mutations,getters} from './mutations'
import actions from './actions'
import cart from './modules/cart'
import order from './modules/order'
import address from './modules/address'
import daojishi from './modules/daojishi'




export default new Vuex.Store({
  // 存放状态数据
  state,
  // 专门修改state状态
  mutations,
  // 提交mutations和异步请求操作
  actions,
  // 派生state状态
  getters,
  // 存放子模块
  modules: {
   cart,
   order,
   address,
   daojishi,
  }
})
